<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社会招聘 - 库洛游戏</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f5f7fa;
        }
        
        /* 导航栏样式 */
        .navbar {
            background: transparent;
            padding: 15px 0;
            position: absolute;
            width: 100%;
            top: 0;
            z-index: 1000;
        }
        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
        }
        .logo {
            height: 40px;
            transition: all 0.3s ease;
        }
        .logo:hover {
            transform: scale(1.2);
        }
        .nav-menu {
            display: flex;
            list-style: none;
            gap: 30px;
        }
        .nav-menu a {
            text-decoration: none;
            color: white;
            font-weight: 500;
            padding: 10px 15px;
            border-radius: 5px;
            transition: all 0.3s ease;
            opacity: 0.9;
        }
        .nav-menu a:hover {
            opacity: 0.6;
            /* 删除了background属性，不加白框 */
        }
        .nav-bold {
            font-weight: bold !important;
        }
        
        /* 页面头部 */
        .page-header {
            background: url('社会招聘顶部.png') no-repeat center center;
            background-size: cover;
            height: 33vh;
            min-height: 250px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
        }
        .page-header::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
        }
        .page-header-content {
            position: relative;
            z-index: 1;
            margin-top: 60px;
        }
        .page-header h1 {
            font-size: 48px;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }
        .page-header p {
            font-size: 1.2rem;
            max-width: 600px;
            margin: 0 auto;
        }
        
        /* 主要内容区域 */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
            display: flex;
            gap: 30px;
        }
        
        /* 左侧筛选栏 */
        .sidebar {
            width: 250px;
            flex-shrink: 0;
        }
        
        .search-box {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }
        
        .search-box input {
            width: 100%;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 1rem;
        }
        
        .filter-section {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }
        
        .filter-title {
            font-size: 1.2rem;
            margin-bottom: 15px;
            color: #1a2a6c;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .filter-option {
            display: block;
            padding: 8px 0;
            cursor: pointer;
            transition: color 0.2s;
        }
        
        .filter-option:hover {
            color: #b21f1f;
        }
        
        .filter-option.active {
            color: #b21f1f;
            font-weight: bold;
        }
        
        /* 右侧职位列表 */
        .main-content {
            flex: 1;
        }
        
        .section-title {
            font-size: 1.8rem;
            margin-bottom: 20px;
            color: #1a2a6c;
            position: relative;
            padding-bottom: 10px;
        }
        
        .section-title::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: linear-gradient(to right, #1a2a6c, #b21f1f);
        }
        
        .job-list {
            background: white;
            border-radius: 10px;
            padding: 25px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }
        
        .job-item {
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
        }
        
        .job-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .job-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .job-title {
            font-size: 1.3rem;
            color: #1a2a6c;
        }
        
        .job-tags {
            display: flex;
            gap: 10px;
        }
        
        .job-tag {
            background: #e9ecef;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
            color: #495057;
        }
        
        .job-location {
            color: #666;
            margin-bottom: 15px;
        }
        
        .job-description {
            margin-top: 15px;
            display: none;
        }
        
        .job-description.active {
            display: block;
        }
        
        .job-description h4 {
            margin: 20px 0 10px;
            color: #333;
        }
        
        .job-description ul {
            margin-left: 20px;
            margin-bottom: 20px;
        }
        
        .job-description li {
            margin-bottom: 5px;
        }
        
        .toggle-btn {
            background: none;
            border: none;
            color: #1a2a6c;
            cursor: pointer;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 5px 0;
            transition: color 0.2s;
        }
        
        .toggle-btn:hover {
            color: #b21f1f;
        }
        
        .toggle-btn::after {
            content: "▼";
            font-size: 0.7rem;
        }
        
        .toggle-btn.active::after {
            content: "▲";
        }
        
        .apply-button {
            display: inline-block;
            background: #007bff;
            color: white;
            padding: 12px 25px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s ease;
            margin-top: 15px;
        }
        
        .apply-button:hover {
            background: #0056b3;
        }
        
        /* 页脚 */
        .footer {
            background: #333;
            color: white;
            text-align: center;
            padding: 30px 20px;
            margin-top: 50px;
        }
        
        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
            }
            
            .page-header h1 {
                font-size: 2rem;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <div class="nav-container">
            <a href="index.html">
                <img src="社会招聘顶部背景.png" alt="库洛游戏" class="logo">
            </a>
            <ul class="nav-menu">
                <li><a href="index.html">首页</a></li>
                <li><a href="social.html" class="nav-bold">社会招聘</a></li>
                <li><a href="login.html">登录</a></li>
            </ul>
        </div>
    </nav>

    <!-- 顶部图片区域 -->
    <section class="page-header">
        <div class="page-header-content">
            <h1>社会招聘</h1>
            <p>寻找志同道合的伙伴，共同创造精彩游戏世界</p>
        </div>
    </section>
    
    <!-- 主要内容区域 -->
    <div class="container">
        <!-- 左侧筛选栏 -->
        <div class="sidebar">
            <div class="search-box">
                <input type="text" placeholder="搜索职位...">
            </div>
            
            <div class="filter-section">
                <h3 class="filter-title">工作城市</h3>
                <label class="filter-option active">
                    <input type="radio" name="city" checked> 广州
                </label>
            </div>
            
            <div class="filter-section">
                <h3 class="filter-title">职位分类</h3>
                <label class="filter-option">
                    <input type="radio" name="category"> 技术类
                </label>
                <label class="filter-option">
                    <input type="radio" name="category"> 设计类
                </label>
                <label class="filter-option">
                    <input type="radio" name="category"> 产品类
                </label>
                <label class="filter-option">
                    <input type="radio" name="category"> 运营类
                </label>
                <label class="filter-option active">
                    <input type="radio" name="category" checked> 划水类
                </label>
                <label class="filter-option">
                    <input type="radio" name="category"> 市场类
                </label>
            </div>
        </div>
        
        <!-- 右侧职位列表 -->
        <div class="main-content">
            <h2 class="section-title">开启新的工作 (310)</h2>
            
            <div class="job-list">
                <!-- 职位1：兔子 -->
                <div class="job-item" id="rabbit">
                    <div class="job-header">
                        <h3 class="job-title">兔子</h3>
                        <div class="job-tags">
                            <span class="job-tag">全职</span>
                            <span class="job-tag">划水类</span>
                        </div>
                    </div>
                    <div class="job-location">工作地点：广州</div>
                    <button class="toggle-btn">查看详情</button>
                    <div class="job-description">
                        <h4>物种分类：</h4>
                        <ul>
                            <li>界：动物界</li>
                            <li>门：脊索动物门</li>
                            <li>纲：哺乳纲</li>
                            <li>目：兔形目</li>
                            <li>科：兔科</li>
                            <li>属：兔属</li>
                            <li>种：家兔</li>
                        </ul>
                        <h4>职位要求：</h4>
                        <ul>
                            <li>擅长跳跃和奔跑</li>
                            <li>胡萝卜种植专业优先</li>
                            <li>需要有良好的挖洞能力</li>
                        </ul>
                        <a href="login.html" class="apply-button">立即申请</a>
                    </div>
                </div>
                
                <!-- 职位2：猫 -->
                <div class="job-item" id="cat">
                    <div class="job-header">
                        <h3 class="job-title">猫</h3>
                        <div class="job-tags">
                            <span class="job-tag">全职</span>
                            <span class="job-tag">划水类</span>
                        </div>
                    </div>
                    <div class="job-location">工作地点：广州</div>
                    <button class="toggle-btn">查看详情</button>
                    <div class="job-description">
                        <h4>物种分类：</h4>
                        <ul>
                            <li>界：动物界</li>
                            <li>门：脊索动物门</li>
                            <li>纲：哺乳纲</li>
                            <li>目：食肉目</li>
                            <li>科：猫科</li>
                            <li>属：猫属</li>
                            <li>种：家猫</li>
                        </ul>
                        <h4>职位要求：</h4>
                        <ul>
                            <li>精通抓老鼠技能</li>
                            <li>需要会卖萌</li>
                            <li>夜班工作能力强者优先</li>
                        </ul>
                        <a href="login.html" class="apply-button">立即申请</a>
                    </div>
                </div>
                
                <!-- 职位3：狗 -->
                <div class="job-item" id="dog">
                    <div class="job-header">
                        <h3 class="job-title">狗</h3>
                        <div class="job-tags">
                            <span class="job-tag">全职</span>
                            <span class="job-tag">划水类</span>
                        </div>
                    </div>
                    <div class="job-location">工作地点：广州</div>
                    <button class="toggle-btn">查看详情</button>
                    <div class="job-description">
                        <h4>物种分类：</h4>
                        <ul>
                            <li>界：动物界</li>
                            <li>门：脊索动物门</li>
                            <li>纲：哺乳纲</li>
                            <li>目：食肉目</li>
                            <li>科：犬科</li>
                            <li>属：犬属</li>
                            <li>种：家犬</li>
                        </ul>
                        <h4>职位要求：</h4>
                        <ul>
                            <li>忠诚度要求100%</li>
                            <li>需要会看家护院</li>
                            <li>摇尾巴技能必须掌握</li>
                        </ul>
                        <a href="login.html" class="apply-button">立即申请</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 页脚 -->
    <footer class="footer">
        <p>&copy; 2024 库洛游戏 版权所有</p>
    </footer>

    <script>
        // 实现职位详情展开/收起功能
        document.querySelectorAll('.toggle-btn').forEach(button => {
            button.addEventListener('click', function() {
                const description = this.nextElementSibling;
                description.classList.toggle('active');
                this.classList.toggle('active');
                
                if (description.classList.contains('active')) {
                    this.textContent = '收起详情';
                } else {
                    this.textContent = '查看详情';
                }
            });
        });
        
        // 实现搜索功能
        const searchInput = document.querySelector('.search-box input');
        searchInput.addEventListener('input', function() {
            const searchTerm = this.value.toLowerCase();
            const jobItems = document.querySelectorAll('.job-item');
            
            jobItems.forEach(item => {
                const title = item.querySelector('.job-title').textContent.toLowerCase();
                const location = item.querySelector('.job-location').textContent.toLowerCase();
                const tags = item.querySelectorAll('.job-tag');
                let tagText = '';
                tags.forEach(tag => tagText += tag.textContent.toLowerCase());
                
                if (title.includes(searchTerm) || location.includes(searchTerm) || tagText.includes(searchTerm)) {
                    item.style.display = 'block';
                } else {
                    item.style.display = 'none';
                }
            });
        });
    </script>
</body>
</html>